<?php
class About_controller extends CI_Controller{
	function __construct()
	{
		parent::__construct();
		$temp = $this->session->userdata('is_logged_in');
		if(!isset($temp) || !$temp) exit('No direct script access allowed');

	}

	function index()
	{

		$is_logged_in = $this->session->userdata('is_logged_in');

		if(isset($is_logged_in) && $is_logged_in)
		{
			$data['title']="About";
			$this->load->view('header',$data);
			$this->load->view('about_view');
			$data['id']="about";
			$this->load->view('footer',$data);
		}
		else
		{redirect('/splash');
		}

	}



}


?>